const login = require('./login/index');
const logout = require('./logout/index');
const setPrivilege = require('./setPrivilege/index');
const changeInfo = require('./changeInfo/index');
const changePassword = require("./changePassword/index")

exports.main = async (event, context) => {
  switch (event.type) {
    case 'login':
      return await login.main(event, context);
    case 'logout':
      return await logout.main(event, context);
    case 'setPrivilege':
      return await setPrivilege.main(event, context);
    case 'changeInfo':
      return await changeInfo.main(event, context);
    case 'changePassword':
      return await changePassword.main(event, context);
  }
};
